<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page
	import="com.cys.bean.WaterQC,com.cys.dao.WaterQCDao"%>
<%
	request.setCharacterEncoding("UTF-8");
	String dev_water_controlor = request.getParameter("w_no");
	String cmd = request.getParameter("we_cmd");
	//String data = request.getParameter("we_data");

	WaterQC waterQC=new WaterQC();
	
	if(dev_water_controlor!=null&&!dev_water_controlor.equals(""))
		waterQC.setDev_water_controlor(Integer.parseInt(dev_water_controlor));
	if(cmd!=null&&!cmd.equals(""))
		waterQC.setCmd(Integer.parseInt(cmd));
	
	boolean res = WaterQCDao.getInstance().WaterQCCmd(waterQC);
	if(res){
		System.out.println("添加成功");
		request.getRequestDispatcher("Control.jsp").forward(request,response);
		
	}
	else{
		System.out.println("添加失败");
		response.sendRedirect("Control.jsp");
	}
%>